<template>
  <u-select
    v-model="show"
    :list="list"
    title="楼长类型"
    :default-value="0"
    :safe-area-inset-bottom="true"
    confirm-color="#D65C45"
    @confirm="confirm"
  ></u-select>
</template>

<script>
export default {
  data() {
    return {
      show: false,
      list: [
        {
          value: 1,
          label: "在校学生",
        },
        {
          value: 2,
          label: "社会商户",
        },
      ],
    };
  },
  methods: {
    /**
     * 确定楼长类型
     */
    confirm(e) {
      this.$parent.builderKind = e[0].label;
      // 类型
      this.$parent.apiForm.type = e[0].value;
    },
  },
};
</script>

<style scoped lang ='scss' >
</style>
